home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: xmsb@shadow.borland.com (Maurice S. Barnum)
- Newsgroups: comp.lang.c.moderated,comp.lang.c
- Subject: Re: Please help me elect rounding of int division
- Date: 21 Feb 1996 18:57:26 -0600
- Organization: Borland Intl
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4ggf1m$8rb@solutions.solon.com>
- References: <4gfaif$1tt@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
-
- swedecj@vcnet.com (Carl Jacobson) writes:
-
- >Please help me solve this task.
-
- >I have now tried (Borland C++ version 3.0) for two solid days to write
- >a function that would allow me to round the quotient of (a/b) up or
- >down based on the "nearest" integer instead of being truncated to the
- >smallest. If exactly half way, return the "odd."
-
- post what you have written so far.
-
- --xmsb
-